package com.wesley.facade;

/**
 * <h1>家庭影院</h1>
 * <p>详述</p>
 *
 * @Date: 2021/8/20
 */
public class HomeMovieFacade {

    private final DVDPlayer dvdPlayer;

    private final TVPlayer tvPlayer;

    public HomeMovieFacade() {
        dvdPlayer = DVDPlayer.getInstance();
        tvPlayer = TVPlayer.getInstance();
    }

    public void on() {
        dvdPlayer.play();
        tvPlayer.play();
    }

    public void close() {
        dvdPlayer.close();
        tvPlayer.close();
    }
}
